package com.gg.hc.service.impl;

import com.gg.common.mapper.MDesignProcedureDetailsMapper;
import com.gg.common.pojo.MDesignProcedureDetails;
import com.gg.hc.service.MDesignProcedureDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MDesignProcedureDetailsServiceimpl implements MDesignProcedureDetailsService {

    @Resource
    private MDesignProcedureDetailsMapper mDesignProcedureDetailsMapper;
    //ii
    @Override
    public List<MDesignProcedureDetails> queryMDesignProcedureDetailsById(List<MDesignProcedureDetails> id) {
        return mDesignProcedureDetailsMapper.queryMDesignProcedureDetailsById(id);
    }

    @Override
    public int updateMDesignProcedureDetailsModuleSubtotal(MDesignProcedureDetails mDesignProcedureDetails) {
        return mDesignProcedureDetailsMapper.updateMDesignProcedureDetailsModuleSubtotal(mDesignProcedureDetails);
    }

    @Override
    public int updateMDesignProcedureDetailsTagById(Integer id) {
        return mDesignProcedureDetailsMapper.updateMDesignProcedureDetailsTagById(id);
    }

    @Override
    public MDesignProcedureDetails selectByPrimaryKey(Integer id) {
        return mDesignProcedureDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int BatchUpdateDesignProcedureProcess(List<MDesignProcedureDetails> mDesignProcedureDetailsList) {
        return mDesignProcedureDetailsMapper.BatchUpdateDesignProcedureProcess(mDesignProcedureDetailsList);
    }

    @Override
    public int deleteByPrimaryKey(int id) {
        return mDesignProcedureDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(List<MDesignProcedureDetails> record) {
        return mDesignProcedureDetailsMapper.insert(record);
    }

    @Override
    public int AddMDesignProcedureProcess(MDesignProcedureDetails mDesignProcedureDetails) {
        return mDesignProcedureDetailsMapper.AddMDesignProcedureProcess(mDesignProcedureDetails);
    }


    @Override
    public List<MDesignProcedureDetails> queryMDesignProcedureDetailsByParentId(int id) {
        return mDesignProcedureDetailsMapper.queryMDesignProcedureDetailsByParentId(id);
    }
}
